/*
 * EnigmaGM - A feature rich guild management system.
 * Copyright (C) 2007 ajiaojr.
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */
package org.ajiaojr.enigmagm.client.data;

import java.io.Serializable;
import java.util.Date;

public class Purchase implements Serializable {
  /**
   * 
   */
  private static final long serialVersionUID = 1123421810181497856L;

  private int characterID;

  private String characterName;

  private int eventID;

  private long eventTime;

  private int itemID;

  private String itemName;

  private double price;

  private String raidBossName;

  public Purchase() {
  }

  public Purchase(int characterID, String characterName, int itemID,
      String itemName, int eventID, String eventName, long eventTime,
      double price) {
    this.characterID = characterID;
    this.characterName = characterName;
    this.itemID = itemID;
    this.eventID = eventID;
    this.itemName = itemName;
    this.raidBossName = eventName;
    this.eventTime = eventTime;
    this.price = price;
  }

  public int getCharacterID() {
    return characterID;
  }

  public String getCharacterName() {
    return characterName;
  }

  public int getEventID() {
    return eventID;
  }

  public long getEventTime() {
    return eventTime;
  }

  /**
   * @return
   */
  public Date getEventTimeAsDate() {
    return new Date(eventTime);
  }

  public int getItemID() {
    return itemID;
  }

  public String getItemName() {
    return itemName;
  }

  public double getPrice() {
    return price;
  }

  public String getRaidBossName() {
    return raidBossName;
  }

  public void setCharacterID(int characterID) {
    this.characterID = characterID;
  }

  public void setCharacterName(String characterName) {
    this.characterName = characterName;
  }

  public void setEventID(int eventID) {
    this.eventID = eventID;
  }

  public void setEventTime(long eventTime) {
    this.eventTime = eventTime;
  }

  public void setItemID(int itemID) {
    this.itemID = itemID;
  }

  public void setItemName(String itemName) {
    this.itemName = itemName;
  }

  public void setPrice(double price) {
    this.price = price;
  }

  public void setRaidBossName(String raidBossName) {
    this.raidBossName = raidBossName;
  }
}
